[INFO] cloning repository https://github.com/xin-water/bittorrent-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xin-water/bittorrent-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxin-water%2Fbittorrent-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxin-water%2Fbittorrent-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7f287bbc8ab18b27b882c8ee97e454fd2b273143
[INFO] checking xin-water/bittorrent-rs against try#e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e for pr-101680
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxin-water%2Fbittorrent-rs" "/workspace/builds/worker-7/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/xin-water/bittorrent-rs on toolchain e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/xin-water/bittorrent-rs
[INFO] finished tweaking git repo https://github.com/xin-water/bittorrent-rs
[INFO] tweaked toml for git repo https://github.com/xin-water/bittorrent-rs written to /workspace/builds/worker-7/source/Cargo.toml
[INFO] crate git repo https://github.com/xin-water/bittorrent-rs already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e5391ef817c7cb8076e21cd3cbde9f91bb46a0a8b3d8de029fbb52e7a41dcff6
[INFO] running `Command { std: "docker" "start" "-a" "e5391ef817c7cb8076e21cd3cbde9f91bb46a0a8b3d8de029fbb52e7a41dcff6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e5391ef817c7cb8076e21cd3cbde9f91bb46a0a8b3d8de029fbb52e7a41dcff6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e5391ef817c7cb8076e21cd3cbde9f91bb46a0a8b3d8de029fbb52e7a41dcff6", kill_on_drop: false }`
[INFO] [stdout] e5391ef817c7cb8076e21cd3cbde9f91bb46a0a8b3d8de029fbb52e7a41dcff6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 05bafed626ada179102740b9bfdf06e0cbc87184dcc46233f4abf6b2a765705f
[INFO] running `Command { std: "docker" "start" "-a" "05bafed626ada179102740b9bfdf06e0cbc87184dcc46233f4abf6b2a765705f", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.80
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling proc-macro2 v1.0.24
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]    Compiling syn v1.0.53
[INFO] [stderr]    Compiling serde_derive v1.0.117
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]    Compiling serde v1.0.117
[INFO] [stderr]    Compiling log v0.4.11
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]    Compiling memchr v2.3.4
[INFO] [stderr]    Compiling winapi-build v0.1.1
[INFO] [stderr]    Compiling version_check v0.9.2
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]     Checking slab v0.4.2
[INFO] [stderr]     Checking matches v0.1.8
[INFO] [stderr]     Checking itoa v0.4.6
[INFO] [stderr]     Checking winapi v0.2.8
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]     Checking rustc-serialize v0.3.24
[INFO] [stderr]     Checking tinyvec_macros v0.1.0
[INFO] [stderr]     Checking hashbrown v0.9.1
[INFO] [stderr]    Compiling ryu v1.0.5
[INFO] [stderr]    Compiling byteorder v1.3.4
[INFO] [stderr]     Checking scopeguard v1.1.0
[INFO] [stderr]    Compiling gcc v0.3.55
[INFO] [stderr]    Compiling const_fn v0.4.5
[INFO] [stderr]     Checking linked-hash-map v0.5.4
[INFO] [stderr]     Checking regex-syntax v0.3.9
[INFO] [stderr]     Checking gimli v0.23.0
[INFO] [stderr]     Checking adler v0.2.3
[INFO] [stderr]     Checking utf8-ranges v0.1.3
[INFO] [stderr]     Checking bitflags v0.4.0
[INFO] [stderr]    Compiling build_const v0.2.1
[INFO] [stderr]     Checking unicode-width v0.1.8
[INFO] [stderr]    Compiling serde_json v1.0.59
[INFO] [stderr]     Checking smallvec v1.6.1
[INFO] [stderr]     Checking ansi_term v0.11.0
[INFO] [stderr]     Checking slab v0.1.3
[INFO] [stderr]     Checking traitobject v0.1.0
[INFO] [stderr]     Checking rustc-demangle v0.1.18
[INFO] [stderr]     Checking vec_map v0.8.2
[INFO] [stderr]     Checking object v0.22.0
[INFO] [stderr]     Checking strsim v0.8.0
[INFO] [stderr]    Compiling anyhow v1.0.43
[INFO] [stderr]     Checking bytes v0.3.0
[INFO] [stderr]     Checking same-file v1.0.6
[INFO] [stderr]     Checking regex-syntax v0.6.25
[INFO] [stderr]     Checking bit-vec v0.4.4
[INFO] [stderr]     Checking dtoa v0.4.8
[INFO] [stderr]     Checking futures v0.1.30
[INFO] [stderr]     Checking humantime v2.1.0
[INFO] [stderr]     Checking slab v0.2.0
[INFO] [stderr]     Checking base32 v0.3.1
[INFO] [stderr]     Checking log-mdc v0.1.0
[INFO] [stderr]     Checking arc-swap v0.4.8
[INFO] [stderr]     Checking crossbeam v0.3.2
[INFO] [stderr]     Checking hex v0.3.2
[INFO] [stderr]    Compiling cc v1.0.65
[INFO] [stderr]    Compiling pkg-config v0.3.19
[INFO] [stderr]     Checking bytes v0.5.6
[INFO] [stderr]     Checking futures-core v0.3.8
[INFO] [stderr]    Compiling pin-project-internal v0.4.27
[INFO] [stderr]     Checking pin-project-lite v0.1.11
[INFO] [stderr]    Compiling openssl v0.10.30
[INFO] [stderr]     Checking foreign-types-shared v0.1.1
[INFO] [stderr]     Checking once_cell v1.5.2
[INFO] [stderr]     Checking pin-project-lite v0.2.0
[INFO] [stderr]    Compiling native-tls v0.2.6
[INFO] [stderr]    Compiling httparse v1.3.4
[INFO] [stderr]     Checking futures-io v0.3.8
[INFO] [stderr]     Checking futures-sink v0.3.8
[INFO] [stderr]    Compiling getrandom v0.1.15
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]     Checking percent-encoding v2.1.0
[INFO] [stderr]     Checking openssl-probe v0.1.2
[INFO] [stderr]     Checking try-lock v0.2.3
[INFO] [stderr]     Checking httpdate v0.3.2
[INFO] [stderr]    Compiling encoding_rs v0.8.26
[INFO] [stderr]     Checking tower-service v0.3.0
[INFO] [stderr]     Checking ppv-lite86 v0.2.10
[INFO] [stderr]     Checking mime v0.3.16
[INFO] [stderr]     Checking ipnet v2.3.0
[INFO] [stderr]     Checking base64 v0.13.0
[INFO] [stderr]    Compiling hex-literal v0.3.1
[INFO] [stderr]     Checking sha1 v0.6.0
[INFO] [stderr]     Checking bittorrent-client v0.1.0 (/opt/rustwide/workdir/bittorrent-client)
[INFO] [stderr]     Checking instant v0.1.10
[INFO] [stderr]     Checking tracing-core v0.1.17
[INFO] [stderr]     Checking unicode-bidi v0.2.6
[INFO] [stderr]     Checking unicode-bidi v0.3.4
[INFO] [stderr]     Checking tinyvec v1.1.0
[INFO] [stderr]    Compiling kernel32-sys v0.2.2
[INFO] [stderr]    Compiling ws2_32-sys v0.2.1
[INFO] [stderr]     Checking lock_api v0.4.4
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling indexmap v1.6.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.1
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling memoffset v0.6.1
[INFO] [stderr]    Compiling miniz_oxide v0.4.3
[INFO] [stderr]    Compiling num-iter v0.1.42
[INFO] [stderr]    Compiling error-chain v0.12.4
[INFO] [stderr]    Compiling unicase v2.6.0
[INFO] [stderr]     Checking yaml-rust v0.4.5
[INFO] [stderr]     Checking lru-cache v0.1.2
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]    Compiling rust-crypto v0.2.36
[INFO] [stderr]    Compiling crc v1.8.1
[INFO] [stderr]     Checking unsafe-any v0.4.2
[INFO] [stderr]     Checking addr2line v0.14.1
[INFO] [stderr]     Checking bit-set v0.4.0
[INFO] [stderr]     Checking walkdir v2.3.1
[INFO] [stderr]     Checking futures-channel v0.3.8
[INFO] [stderr]     Checking foreign-types v0.3.2
[INFO] [stderr]     Checking futures-task v0.3.8
[INFO] [stderr]     Checking http v0.2.1
[INFO] [stderr]     Checking form_urlencoded v1.0.0
[INFO] [stderr]    Compiling openssl-sys v0.9.58
[INFO] [stderr]     Checking unicode-normalization v0.1.16
[INFO] [stderr]     Checking typemap v0.3.3
[INFO] [stderr]     Checking aho-corasick v0.7.15
[INFO] [stderr]     Checking crossbeam-channel v0.5.0
[INFO] [stderr]     Checking crossbeam-queue v0.3.1
[INFO] [stderr]    Compiling mime_guess v2.0.3
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]     Checking net2 v0.2.36
[INFO] [stderr]     Checking iovec v0.1.4
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking time v0.1.44
[INFO] [stderr]     Checking memchr v0.1.11
[INFO] [stderr]     Checking thread-id v2.0.0
[INFO] [stderr]     Checking nix v0.5.1
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking memchr v1.0.2
[INFO] [stderr]     Checking parking_lot_core v0.8.3
[INFO] [stderr]     Checking thread-id v3.3.0
[INFO] [stderr]     Checking socket2 v0.3.17
[INFO] [stderr]     Checking num-traits v0.1.43
[INFO] [stderr]     Checking crossbeam-epoch v0.9.1
[INFO] [stderr]     Checking num-complex v0.1.43
[INFO] [stderr]     Checking ordered-float v2.7.0
[INFO] [stderr]     Checking idna v0.2.0
[INFO] [stderr]     Checking backtrace v0.3.55
[INFO] [stderr]     Checking regex v1.4.6
[INFO] [stderr]     Checking bytes v0.4.12
[INFO] [stderr]     Checking thread_local v0.2.7
[INFO] [stderr]     Checking aho-corasick v0.5.3
[INFO] [stderr]     Checking miow v0.1.5
[INFO] [stderr]     Checking threadpool v1.8.1
[INFO] [stderr]     Checking http-body v0.3.1
[INFO] [stderr]     Checking pbr v1.0.4
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]     Checking clap v2.33.3
[INFO] [stderr]     Checking nom v3.2.1
[INFO] [stderr]     Checking parking_lot v0.11.1
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking bencode v0.1.16
[INFO] [stderr]     Checking num-bigint v0.1.44
[INFO] [stderr]     Checking regex v0.1.80
[INFO] [stderr]     Checking chrono v0.4.19
[INFO] [stderr]     Checking crossbeam-deque v0.8.0
[INFO] [stderr]     Checking url v2.2.0
[INFO] [stderr]     Checking uuid v0.2.3
[INFO] [stderr]     Checking num-rational v0.1.42
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking url v0.5.10
[INFO] [stderr]     Checking crossbeam v0.8.0
[INFO] [stderr]     Checking num v0.1.42
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]    Compiling thiserror-impl v1.0.26
[INFO] [stderr]    Compiling derivative v2.2.0
[INFO] [stderr]    Compiling pin-project-internal v1.0.2
[INFO] [stderr]     Checking thiserror v1.0.26
[INFO] [stderr]     Checking pin-project v1.0.2
[INFO] [stderr]     Checking pin-project v0.4.27
[INFO] [stderr]     Checking futures-util v0.3.8
[INFO] [stderr]     Checking serde-value v0.7.0
[INFO] [stderr]     Checking serde_yaml v0.8.19
[INFO] [stderr]     Checking serde_urlencoded v0.7.0
[INFO] [stderr]     Checking log v0.3.9
[INFO] [stderr]     Checking mio v0.6.22
[INFO] [stderr]     Checking tracing v0.1.22
[INFO] [stderr]     Checking want v0.3.0
[INFO] [stderr]     Checking env_logger v0.3.5
[INFO] [stderr]     Checking mio v0.5.1
[INFO] [stderr]     Checking pendulum v0.3.1
[INFO] [stderr]     Checking tracing-futures v0.2.4
[INFO] [stderr]     Checking quickcheck v0.4.1
[INFO] [stderr]     Checking umio v0.3.0
[INFO] [stderr]     Checking bittorrent-protocol v0.1.7 (/opt/rustwide/workdir/bittorrent-protocol)
[INFO] [stderr]     Checking log4rs v1.0.0
[INFO] [stderr]     Checking tokio v0.2.23
[INFO] [stdout] warning: unused macro definition: `bt_ben_list`
[INFO] [stdout]    --> bittorrent-protocol/src/bencode/mod.rs:134:14
[INFO] [stdout]     |
[INFO] [stdout] 134 | macro_rules! bt_ben_list {
[INFO] [stdout]     |              ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_macros)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/option.rs:157:1
[INFO] [stdout]     |
[INFO] [stdout] 157 | /// Parse an end of buffer or the end of option byte.
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout]     = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/option.rs:191:1
[INFO] [stdout]     |
[INFO] [stdout] 191 | /// Parse a single byte as an unsigned pointer size.
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
[INFO] [stdout]     |
[INFO] [stdout]     = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/manager/mod.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cmp;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HandshakeType`
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/manager/mod.rs:27:56
[INFO] [stdout]    |
[INFO] [stdout] 27 | use crate::handshake::handler::{handshaker, initiator, HandshakeType};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/handler/listener.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Cursor`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:4:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::{self, Cursor, Write, Read};
[INFO] [stdout]   |                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Incoming`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/transport.rs:7:28
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::net::{SocketAddr, Incoming};
[INFO] [stdout]   |                            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::option::Option::Some`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/transport.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::option::Option::Some;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UtpStream`
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/transport.rs:10:42
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::utp::{UtpSocket, UtpListener, UtpStream};
[INFO] [stdout]    |                                          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Sender`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/stream.rs:2:26
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crossbeam::channel::{Sender,Receiver};
[INFO] [stdout]   |                          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ManagedMessage`
[INFO] [stdout]  --> bittorrent-protocol/src/peer/manager/builder.rs:3:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | use super::{ManagedMessage, PeerManager};
[INFO] [stdout]   |             ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::TcpStream`
[INFO] [stdout]   --> bittorrent-protocol/src/peer/manager/mod.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use std::net::TcpStream;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::TcpStream`
[INFO] [stdout]  --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::net::TcpStream;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc`, `Mutex`
[INFO] [stdout]   --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::{Arc, Mutex};
[INFO] [stdout]    |                 ^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::peer::manager::TryClone`
[INFO] [stdout]   --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::peer::manager::TryClone;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::peer::message::PeerWireProtocolMessage`
[INFO] [stdout]  --> bittorrent-protocol/src/peer/manager/task_split.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::peer::message::PeerWireProtocolMessage;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::TcpStream`
[INFO] [stdout]  --> bittorrent-protocol/src/peer/manager/task_split.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::net::TcpStream;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::select::discovery::error::DiscoveryError`
[INFO] [stdout]  --> bittorrent-protocol/src/select/uber.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::select::discovery::error::DiscoveryError;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/announce.rs:479:1
[INFO] [stdout]     |
[INFO] [stdout] 479 | / named!(parse_ipv4<&[u8], Ipv4Addr>,
[INFO] [stdout] 480 | |     map!(count_fixed!(u8, be_u8, 4), |b| convert::bytes_be_to_ipv4(b))
[INFO] [stdout] 481 | | );
[INFO] [stdout]     | |_^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/announce.rs:490:1
[INFO] [stdout]     |
[INFO] [stdout] 490 | / named!(parse_ipv6<&[u8], Ipv6Addr>,
[INFO] [stdout] 491 | |     map!(count_fixed!(u8, be_u8, 16), |b| convert::bytes_be_to_ipv6(b))
[INFO] [stdout] 492 | | );
[INFO] [stdout]     | |_^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/message/extensions.rs:96:5
[INFO] [stdout]    |
[INFO] [stdout] 96 | /     do_parse!(
[INFO] [stdout] 97 | |         bytes,
[INFO] [stdout] 98 | |         bytes: count_fixed!(u8, be_u8, NUM_EXTENSION_BYTES) >> (Extensions::with_bytes(bytes))
[INFO] [stdout] 99 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `do_parse` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules
[INFO] [stdout]  --> bittorrent-protocol/src/peer/macros.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_attributes)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules
[INFO] [stdout]   --> bittorrent-protocol/src/peer/macros.rs:24:1
[INFO] [stdout]    |
[INFO] [stdout] 24 | #[macro_use]
[INFO] [stdout]    | ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `SocketState` is defined multiple times
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1308:9
[INFO] [stdout]      |
[INFO] [stdout] 1305 |     use crate::utp::socket::{UtpSocket, UtpListener, SocketState, BUF_SIZE, take_address};
[INFO] [stdout]      |                                                      ----------- previous import of the type `SocketState` here
[INFO] [stdout] ...
[INFO] [stdout] 1308 |     use crate::utp::socket::SocketState;
[INFO] [stdout]      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SocketState` reimported here
[INFO] [stdout]      |
[INFO] [stdout]      = note: `SocketState` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `super::super::quickcheck`
[INFO] [stdout]    --> bittorrent-protocol/src/utp/packet.rs:501:23
[INFO] [stdout]     |
[INFO] [stdout] 501 |     use super::super::quickcheck::TestResult;
[INFO] [stdout]     |                       ^^^^^^^^^^ could not find `quickcheck` in `super`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `futures`
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/handshaker.rs:147:9
[INFO] [stdout]     |
[INFO] [stdout] 147 |     use futures::future::{self, Future};
[INFO] [stdout]     |         ^^^^^^^ use of undeclared crate or module `futures`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `futures`
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/handshaker.rs:147:9
[INFO] [stdout]     |
[INFO] [stdout] 147 |     use futures::future::{self, Future};
[INFO] [stdout]     |         ^^^^^^^ use of undeclared crate or module `futures`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `tokio_timer`
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/handshaker.rs:148:9
[INFO] [stdout]     |
[INFO] [stdout] 148 |     use tokio_timer;
[INFO] [stdout]     |         ^^^^^^^^^^^ no external crate `tokio_timer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio_core`
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/initiator.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |     use tokio_core::reactor::Core;
[INFO] [stdout]    |         ^^^^^^^^^^ use of undeclared crate or module `tokio_core`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `futures`
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/initiator.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 42 |     use futures::Future;
[INFO] [stdout]    |         ^^^^^^^ use of undeclared crate or module `futures`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `tokio_timer`
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/initiator.rs:44:9
[INFO] [stdout]    |
[INFO] [stdout] 44 |     use tokio_timer;
[INFO] [stdout]    |         ^^^^^^^^^^^ no external crate `tokio_timer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `futures`
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/listener.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 38 |     use futures::Future;
[INFO] [stdout]    |         ^^^^^^^ use of undeclared crate or module `futures`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PacketHeader`
[INFO] [stdout]    --> bittorrent-protocol/src/utp/packet.rs:740:16
[INFO] [stdout]     |
[INFO] [stdout] 740 |             if PacketHeader::try_from(&x).and(check_extensions(&x)).is_err() {
[INFO] [stdout]     |                ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 498 |     use crate::utp::packet::PacketHeader;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QuickCheck`
[INFO] [stdout]    --> bittorrent-protocol/src/utp/packet.rs:748:9
[INFO] [stdout]     |
[INFO] [stdout] 748 |         QuickCheck::new().tests(10000).quickcheck(run as fn(Vec<u8>) -> TestResult)
[INFO] [stdout]     |         ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 498 |     use quickcheck::QuickCheck;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `bt_ben_list`
[INFO] [stdout]    --> bittorrent-protocol/src/bencode/mod.rs:134:14
[INFO] [stdout]     |
[INFO] [stdout] 134 | macro_rules! bt_ben_list {
[INFO] [stdout]     |              ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_macros)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/option.rs:157:1
[INFO] [stdout]     |
[INFO] [stdout] 157 | /// Parse an end of buffer or the end of option byte.
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout]     = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/option.rs:191:1
[INFO] [stdout]     |
[INFO] [stdout] 191 | /// Parse a single byte as an unsigned pointer size.
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
[INFO] [stdout]     |
[INFO] [stdout]     = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utp::socket::SocketState`
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1308:9
[INFO] [stdout]      |
[INFO] [stdout] 1308 |     use crate::utp::socket::SocketState;
[INFO] [stdout]      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]      |
[INFO] [stdout]      = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:2331:30
[INFO] [stdout]      |
[INFO] [stdout] 2331 |         assert!(take_address(("0.0.0.0:0")).is_ok());
[INFO] [stdout]      |                              ^           ^
[INFO] [stdout]      |
[INFO] [stdout]      = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]      |
[INFO] [stdout] 2331 -         assert!(take_address(("0.0.0.0:0")).is_ok());
[INFO] [stdout] 2331 +         assert!(take_address("0.0.0.0:0").is_ok());
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:2332:30
[INFO] [stdout]      |
[INFO] [stdout] 2332 |         assert!(take_address(("[::]:0")).is_ok());
[INFO] [stdout]      |                              ^        ^
[INFO] [stdout]      |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]      |
[INFO] [stdout] 2332 -         assert!(take_address(("[::]:0")).is_ok());
[INFO] [stdout] 2332 +         assert!(take_address("[::]:0").is_ok());
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:2339:30
[INFO] [stdout]      |
[INFO] [stdout] 2339 |         assert!(take_address(("1.2.3.4:70000")).is_err());
[INFO] [stdout]      |                              ^               ^
[INFO] [stdout]      |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]      |
[INFO] [stdout] 2339 -         assert!(take_address(("1.2.3.4:70000")).is_err());
[INFO] [stdout] 2339 +         assert!(take_address("1.2.3.4:70000").is_err());
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/manager/mod.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cmp;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `HandshakeType`
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/manager/mod.rs:27:56
[INFO] [stdout]    |
[INFO] [stdout] 27 | use crate::handshake::handler::{handshaker, initiator, HandshakeType};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/handler/listener.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Cursor`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:4:21
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::{self, Cursor, Write, Read};
[INFO] [stdout]   |                     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Incoming`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/transport.rs:7:28
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::net::{SocketAddr, Incoming};
[INFO] [stdout]   |                            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::option::Option::Some`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/transport.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::option::Option::Some;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UtpStream`
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/transport.rs:10:42
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::utp::{UtpSocket, UtpListener, UtpStream};
[INFO] [stdout]    |                                          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Sender`
[INFO] [stdout]  --> bittorrent-protocol/src/handshake/stream.rs:2:26
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crossbeam::channel::{Sender,Receiver};
[INFO] [stdout]   |                          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ManagedMessage`
[INFO] [stdout]  --> bittorrent-protocol/src/peer/manager/builder.rs:3:13
[INFO] [stdout]   |
[INFO] [stdout] 3 | use super::{ManagedMessage, PeerManager};
[INFO] [stdout]   |             ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::TcpStream`
[INFO] [stdout]   --> bittorrent-protocol/src/peer/manager/mod.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use std::net::TcpStream;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::TcpStream`
[INFO] [stdout]  --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::net::TcpStream;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc`, `Mutex`
[INFO] [stdout]   --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::{Arc, Mutex};
[INFO] [stdout]    |                 ^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::peer::manager::TryClone`
[INFO] [stdout]   --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::peer::manager::TryClone;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::peer::message::PeerWireProtocolMessage`
[INFO] [stdout]  --> bittorrent-protocol/src/peer/manager/task_split.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::peer::message::PeerWireProtocolMessage;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::TcpStream`
[INFO] [stdout]  --> bittorrent-protocol/src/peer/manager/task_split.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::net::TcpStream;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::select::discovery::error::DiscoveryError`
[INFO] [stdout]  --> bittorrent-protocol/src/select/uber.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::select::discovery::error::DiscoveryError;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> bittorrent-protocol/src/utp/error.rs:33:26
[INFO] [stdout]    |
[INFO] [stdout] 33 |         f.write_str(self.description())
[INFO] [stdout]    |                          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> bittorrent-protocol/src/utp/error.rs:49:36
[INFO] [stdout]    |
[INFO] [stdout] 49 |         io::Error::new(kind, error.description())
[INFO] [stdout]    |                                    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> bittorrent-protocol/src/utp/error.rs:63:30
[INFO] [stdout]    |
[INFO] [stdout] 63 |         write!(f, "{}", self.description())
[INFO] [stdout]    |                              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> bittorrent-protocol/src/utp/error.rs:81:48
[INFO] [stdout]    |
[INFO] [stdout] 81 |         io::Error::new(ErrorKind::Other, error.description())
[INFO] [stdout]    |                                                ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/announce.rs:479:1
[INFO] [stdout]     |
[INFO] [stdout] 479 | / named!(parse_ipv4<&[u8], Ipv4Addr>,
[INFO] [stdout] 480 | |     map!(count_fixed!(u8, be_u8, 4), |b| convert::bytes_be_to_ipv4(b))
[INFO] [stdout] 481 | | );
[INFO] [stdout]     | |_^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/announce.rs:490:1
[INFO] [stdout]     |
[INFO] [stdout] 490 | / named!(parse_ipv6<&[u8], Ipv6Addr>,
[INFO] [stdout] 491 | |     map!(count_fixed!(u8, be_u8, 16), |b| convert::bytes_be_to_ipv6(b))
[INFO] [stdout] 492 | | );
[INFO] [stdout]     | |_^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1315:46
[INFO] [stdout]      |
[INFO] [stdout] 1315 |         use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
[INFO] [stdout]      |                                              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1316:43
[INFO] [stdout]      |
[INFO] [stdout] 1316 |         static NEXT_OFFSET: AtomicUsize = ATOMIC_USIZE_INIT;
[INFO] [stdout]      |                                           ^^^^^^^^^^^^^^^^^
[INFO] [stdout]      |
[INFO] [stdout] help: replace the use of the deprecated constant
[INFO] [stdout]      |
[INFO] [stdout] 1316 |         static NEXT_OFFSET: AtomicUsize = AtomicUsize::new(0);
[INFO] [stdout]      |                                           ~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/message/extensions.rs:96:5
[INFO] [stdout]    |
[INFO] [stdout] 96 | /     do_parse!(
[INFO] [stdout] 97 | |         bytes,
[INFO] [stdout] 98 | |         bytes: count_fixed!(u8, be_u8, NUM_EXTENSION_BYTES) >> (Extensions::with_bytes(bytes))
[INFO] [stdout] 99 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in the macro `count_fixed` which comes from the expansion of the macro `do_parse` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules
[INFO] [stdout]  --> bittorrent-protocol/src/peer/macros.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_attributes)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules
[INFO] [stdout]   --> bittorrent-protocol/src/peer/macros.rs:24:1
[INFO] [stdout]    |
[INFO] [stdout] 24 | #[macro_use]
[INFO] [stdout]    | ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `curr_piece_buffer` is never read
[INFO] [stdout]    --> bittorrent-protocol/src/metainfo/builder/worker.rs:100:25
[INFO] [stdout]     |
[INFO] [stdout] 100 |                 let mut curr_piece_buffer = PieceBuffer::new(1);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `timer`
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/initiator.rs:16:44
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let &(ref transport, ref filters,  ref timer) = context;
[INFO] [stdout]    |                                            ^^^^^ help: if this is intentional, prefix it with an underscore: `_timer`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tasks_available`
[INFO] [stdout]    --> bittorrent-protocol/src/select/discovery/ut_metadata.rs:462:13
[INFO] [stdout]     |
[INFO] [stdout] 462 |         let tasks_available = self.initialize_pending();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tasks_available`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `free_task_queue_space`
[INFO] [stdout]    --> bittorrent-protocol/src/select/discovery/ut_metadata.rs:463:13
[INFO] [stdout]     |
[INFO] [stdout] 463 |         let free_task_queue_space = self.active_requests.len() != MAX_ACTIVE_REQUESTS;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_free_task_queue_space`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer_requests_available`
[INFO] [stdout]    --> bittorrent-protocol/src/select/discovery/ut_metadata.rs:465:13
[INFO] [stdout]     |
[INFO] [stdout] 465 |         let peer_requests_available = !self.peer_requests.is_empty();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_requests_available`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `downloads_available`
[INFO] [stdout]    --> bittorrent-protocol/src/select/discovery/ut_metadata.rs:468:13
[INFO] [stdout]     |
[INFO] [stdout] 468 |         let downloads_available = self.validate_downloaded();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_downloads_available`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0271]: type mismatch resolving `<MockListener as Stream>::Item == (std::io::Cursor<Vec<u8>>, std::net::SocketAddr)`
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/transport.rs:153:25
[INFO] [stdout]     |
[INFO] [stdout] 153 |         type Listener = MockListener;
[INFO] [stdout]     |                         ^^^^^^^^^^^^ type mismatch resolving `<MockListener as Stream>::Item == (std::io::Cursor<Vec<u8>>, std::net::SocketAddr)`
[INFO] [stdout]     |
[INFO] [stdout] note: expected this to be `(std::io::Cursor<Vec<u8>>, std::net::SocketAddr)`
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/transport.rs:194:21
[INFO] [stdout]     |
[INFO] [stdout] 194 |         type Item = Cursor<Vec<u8>>;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: expected tuple `(std::io::Cursor<Vec<u8>>, std::net::SocketAddr)`
[INFO] [stdout]               found struct `std::io::Cursor<Vec<u8>>`
[INFO] [stdout] note: required by a bound in `Transport::Listener`
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/transport.rs:18:27
[INFO] [stdout]     |
[INFO] [stdout] 18  |     type Listener: Stream<Item = (Self::Socket, SocketAddr) > + LocalAddr + 'static;
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Transport::Listener`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/src/utp/packet.rs:245:13
[INFO] [stdout]     |
[INFO] [stdout] 245 |         let mut header = unsafe { &mut *(self.0.as_mut_ptr() as *mut PacketHeader) };
[INFO] [stdout]     |             ----^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/src/utp/socket.rs:465:17
[INFO] [stdout]     |
[INFO] [stdout] 465 |             let mut packet = &mut self.send_window[0];
[INFO] [stdout]     |                 ----^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `[_; 0]`
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/contact.rs:395:13
[INFO] [stdout]     |
[INFO] [stdout] 395 |         let expected = [];
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `expected` an explicit type, where the type for type parameter `T` is specified
[INFO] [stdout]     |
[INFO] [stdout] 395 |         let expected: [_; 0] = [];
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0283]: type annotations needed for `[_; 0]`
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/contact.rs:395:13
[INFO] [stdout]     |
[INFO] [stdout] 395 |         let expected = [];
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout] 396 |
[INFO] [stdout] 397 |         assert_eq!(&received[..], &expected[..]);
[INFO] [stdout]     |         ---------------------------------------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout]     = note: multiple `impl`s satisfying `u8: PartialEq<_>` found in the following crates: `core`, `regex_syntax`, `serde_json`, `serde_yaml`:
[INFO] [stdout]             - impl PartialEq for u8;
[INFO] [stdout]             - impl PartialEq<regex_syntax::ByteRange> for u8;
[INFO] [stdout]             - impl PartialEq<serde_json::Value> for u8;
[INFO] [stdout]             - impl PartialEq<serde_yaml::Value> for u8;
[INFO] [stdout]     = note: required for `[u8]` to implement `PartialEq<[_]>`
[INFO] [stdout]     = note: 1 redundant requirement hidden
[INFO] [stdout]     = note: required for `&[u8]` to implement `~const PartialEq<&[_]>`
[INFO] [stdout] help: consider giving `expected` an explicit type, where the type for type parameter `B` is specified
[INFO] [stdout]     |
[INFO] [stdout] 395 |         let expected: [_; 0] = [];
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `[_; 0]`
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/contact.rs:497:13
[INFO] [stdout]     |
[INFO] [stdout] 497 |         let expected = [];
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `expected` an explicit type, where the type for type parameter `T` is specified
[INFO] [stdout]     |
[INFO] [stdout] 497 |         let expected: [_; 0] = [];
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0283]: type annotations needed for `[_; 0]`
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/contact.rs:497:13
[INFO] [stdout]     |
[INFO] [stdout] 497 |         let expected = [];
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout] 498 |
[INFO] [stdout] 499 |         assert_eq!(&received[..], &expected[..]);
[INFO] [stdout]     |         ---------------------------------------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout]     = note: multiple `impl`s satisfying `u8: PartialEq<_>` found in the following crates: `core`, `regex_syntax`, `serde_json`, `serde_yaml`:
[INFO] [stdout]             - impl PartialEq for u8;
[INFO] [stdout]             - impl PartialEq<regex_syntax::ByteRange> for u8;
[INFO] [stdout]             - impl PartialEq<serde_json::Value> for u8;
[INFO] [stdout]             - impl PartialEq<serde_yaml::Value> for u8;
[INFO] [stdout]     = note: required for `[u8]` to implement `PartialEq<[_]>`
[INFO] [stdout]     = note: 1 redundant requirement hidden
[INFO] [stdout]     = note: required for `&[u8]` to implement `~const PartialEq<&[_]>`
[INFO] [stdout] help: consider giving `expected` an explicit type, where the type for type parameter `B` is specified
[INFO] [stdout]     |
[INFO] [stdout] 497 |         let expected: [_; 0] = [];
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1110:9
[INFO] [stdout]      |
[INFO] [stdout] 1110 |     let mut socket = self.socket.try_clone().expect("UtpSocket clone fail");
[INFO] [stdout]      |         ----^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1111:9
[INFO] [stdout]      |
[INFO] [stdout] 1111 |     let mut connected_to = self.connected_to.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1112:9
[INFO] [stdout]      |
[INFO] [stdout] 1112 |     let mut sender_connection_id = self.sender_connection_id;
[INFO] [stdout]      |         ----^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1113:9
[INFO] [stdout]      |
[INFO] [stdout] 1113 |     let mut receiver_connection_id = self.receiver_connection_id;
[INFO] [stdout]      |         ----^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1114:9
[INFO] [stdout]      |
[INFO] [stdout] 1114 |     let mut seq_nr = self.seq_nr;
[INFO] [stdout]      |         ----^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1115:9
[INFO] [stdout]      |
[INFO] [stdout] 1115 |     let mut ack_nr = self.ack_nr;
[INFO] [stdout]      |         ----^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1116:9
[INFO] [stdout]      |
[INFO] [stdout] 1116 |     let mut state = self.state.clone();
[INFO] [stdout]      |         ----^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `[_; 0]`
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/option.rs:245:13
[INFO] [stdout]     |
[INFO] [stdout] 245 |         let expected = [];
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `expected` an explicit type, where the type for type parameter `T` is specified
[INFO] [stdout]     |
[INFO] [stdout] 245 |         let expected: [_; 0] = [];
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1117:9
[INFO] [stdout]      |
[INFO] [stdout] 1117 |     let mut incoming_buffer = self.incoming_buffer.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1118:9
[INFO] [stdout]      |
[INFO] [stdout] 1118 |     let mut send_window = self.send_window.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1119:9
[INFO] [stdout]      |
[INFO] [stdout] 1119 |     let mut unsent_queue = self.unsent_queue.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1120:9
[INFO] [stdout]      |
[INFO] [stdout] 1120 |     let mut duplicate_ack_count = self.duplicate_ack_count.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0283]: type annotations needed for `[_; 0]`
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/option.rs:245:13
[INFO] [stdout]     |
[INFO] [stdout] 245 |         let expected = [];
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout] 246 |
[INFO] [stdout] 247 |         assert_eq!(&received[..], &expected[..]);
[INFO] [stdout]     |         ---------------------------------------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout]     = note: multiple `impl`s satisfying `u8: PartialEq<_>` found in the following crates: `core`, `regex_syntax`, `serde_json`, `serde_yaml`:
[INFO] [stdout]             - impl PartialEq for u8;
[INFO] [stdout]             - impl PartialEq<regex_syntax::ByteRange> for u8;
[INFO] [stdout]             - impl PartialEq<serde_json::Value> for u8;
[INFO] [stdout]             - impl PartialEq<serde_yaml::Value> for u8;
[INFO] [stdout]     = note: required for `[u8]` to implement `PartialEq<[_]>`
[INFO] [stdout]     = note: 1 redundant requirement hidden
[INFO] [stdout]     = note: required for `&[u8]` to implement `~const PartialEq<&[_]>`
[INFO] [stdout] help: consider giving `expected` an explicit type, where the type for type parameter `B` is specified
[INFO] [stdout]     |
[INFO] [stdout] 245 |         let expected: [_; 0] = [];
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1121:9
[INFO] [stdout]      |
[INFO] [stdout] 1121 |     let mut last_acked = self.last_acked.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1122:9
[INFO] [stdout]      |
[INFO] [stdout] 1122 |     let mut last_acked_timestamp = self.last_acked_timestamp.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1123:9
[INFO] [stdout]      |
[INFO] [stdout] 1123 |     let mut last_dropped = self.last_dropped.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1124:9
[INFO] [stdout]      |
[INFO] [stdout] 1124 |     let mut rtt = self.rtt.clone();
[INFO] [stdout]      |         ----^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1125:9
[INFO] [stdout]      |
[INFO] [stdout] 1125 |     let mut pending_data = self.pending_data.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1126:9
[INFO] [stdout]      |
[INFO] [stdout] 1126 |     let mut rtt_variance = self.rtt_variance.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1127:9
[INFO] [stdout]      |
[INFO] [stdout] 1127 |     let mut curr_window = self.curr_window.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1128:9
[INFO] [stdout]      |
[INFO] [stdout] 1128 |     let mut remote_wnd_size= self.remote_wnd_size.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1129:9
[INFO] [stdout]      |
[INFO] [stdout] 1129 |     let mut base_delays= self.base_delays.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1130:9
[INFO] [stdout]      |
[INFO] [stdout] 1130 |     let mut current_delays= self.current_delays.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1131:9
[INFO] [stdout]      |
[INFO] [stdout] 1131 |     let mut their_delay = self.their_delay.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1132:9
[INFO] [stdout]      |
[INFO] [stdout] 1132 |     let mut last_rollover = self.last_rollover.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1133:9
[INFO] [stdout]      |
[INFO] [stdout] 1133 |     let mut congestion_timeout = self.congestion_timeout.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1134:9
[INFO] [stdout]      |
[INFO] [stdout] 1134 |     let mut cwnd = self.cwnd.clone();
[INFO] [stdout]      |         ----^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1135:9
[INFO] [stdout]      |
[INFO] [stdout] 1135 |     let mut max_retransmission_retries = self.max_retransmission_retries.clone();
[INFO] [stdout]      |         ----^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> bittorrent-protocol/src/utp/socket.rs:1137:9
[INFO] [stdout]      |
[INFO] [stdout] 1137 |     let mut utp_socket = UtpSocket {
[INFO] [stdout]      |         ----^^^^^^^^^^
[INFO] [stdout]      |         |
[INFO] [stdout]      |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `[_; 0]`
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/scrape.rs:302:13
[INFO] [stdout]     |
[INFO] [stdout] 302 |         let expected = [];
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `expected` an explicit type, where the type for type parameter `T` is specified
[INFO] [stdout]     |
[INFO] [stdout] 302 |         let expected: [_; 0] = [];
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0283]: type annotations needed for `[_; 0]`
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/scrape.rs:302:13
[INFO] [stdout]     |
[INFO] [stdout] 302 |         let expected = [];
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout] 303 |
[INFO] [stdout] 304 |         assert_eq!(&received[..], &expected[..]);
[INFO] [stdout]     |         ---------------------------------------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout]     = note: multiple `impl`s satisfying `u8: PartialEq<_>` found in the following crates: `core`, `regex_syntax`, `serde_json`, `serde_yaml`:
[INFO] [stdout]             - impl PartialEq for u8;
[INFO] [stdout]             - impl PartialEq<regex_syntax::ByteRange> for u8;
[INFO] [stdout]             - impl PartialEq<serde_json::Value> for u8;
[INFO] [stdout]             - impl PartialEq<serde_yaml::Value> for u8;
[INFO] [stdout]     = note: required for `[u8]` to implement `PartialEq<[_]>`
[INFO] [stdout]     = note: 1 redundant requirement hidden
[INFO] [stdout]     = note: required for `&[u8]` to implement `~const PartialEq<&[_]>`
[INFO] [stdout] help: consider giving `expected` an explicit type, where the type for type parameter `B` is specified
[INFO] [stdout]     |
[INFO] [stdout] 302 |         let expected: [_; 0] = [];
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `[_; 0]`
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/scrape.rs:346:13
[INFO] [stdout]     |
[INFO] [stdout] 346 |         let expected = [];
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `expected` an explicit type, where the type for type parameter `T` is specified
[INFO] [stdout]     |
[INFO] [stdout] 346 |         let expected: [_; 0] = [];
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0283]: type annotations needed for `[_; 0]`
[INFO] [stdout]    --> bittorrent-protocol/src/utracker/scrape.rs:346:13
[INFO] [stdout]     |
[INFO] [stdout] 346 |         let expected = [];
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout] 347 |
[INFO] [stdout] 348 |         assert_eq!(&received[..], &expected[..]);
[INFO] [stdout]     |         ---------------------------------------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout]     = note: multiple `impl`s satisfying `u8: PartialEq<_>` found in the following crates: `core`, `regex_syntax`, `serde_json`, `serde_yaml`:
[INFO] [stdout]             - impl PartialEq for u8;
[INFO] [stdout]             - impl PartialEq<regex_syntax::ByteRange> for u8;
[INFO] [stdout]             - impl PartialEq<serde_json::Value> for u8;
[INFO] [stdout]             - impl PartialEq<serde_yaml::Value> for u8;
[INFO] [stdout]     = note: required for `[u8]` to implement `PartialEq<[_]>`
[INFO] [stdout]     = note: 1 redundant requirement hidden
[INFO] [stdout]     = note: required for `&[u8]` to implement `~const PartialEq<&[_]>`
[INFO] [stdout] help: consider giving `expected` an explicit type, where the type for type parameter `B` is specified
[INFO] [stdout]     |
[INFO] [stdout] 346 |         let expected: [_; 0] = [];
[INFO] [stdout]     |                     ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/src/select/uber.rs:162:17
[INFO] [stdout]     |
[INFO] [stdout] 162 |             let mut opt_next_state = get_next_state(self);
[INFO] [stdout]     |                 ----^^^^^^^^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `DEFAULT_TIMER_SLOTS` is never used
[INFO] [stdout]   --> bittorrent-protocol/src/peer/manager/mod.rs:26:7
[INFO] [stdout]    |
[INFO] [stdout] 26 | const DEFAULT_TIMER_SLOTS: usize = 2048;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `run_peer` is never used
[INFO] [stdout]   --> bittorrent-protocol/src/peer/manager/task_one_thread.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub fn run_peer<S>(
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/handshaker.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |         framed.send(handshake_msg).map_err(|_| ());
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/handshaker.rs:122:21
[INFO] [stdout]     |
[INFO] [stdout] 122 |                     framed.send(handshake_msg);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 self.sock.flush();
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> bittorrent-protocol/src/utp/error.rs:33:26
[INFO] [stdout]    |
[INFO] [stdout] 33 |         f.write_str(self.description())
[INFO] [stdout]    |                          ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> bittorrent-protocol/src/utp/error.rs:49:36
[INFO] [stdout]    |
[INFO] [stdout] 49 |         io::Error::new(kind, error.description())
[INFO] [stdout]    |                                    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> bittorrent-protocol/src/utp/error.rs:63:30
[INFO] [stdout]    |
[INFO] [stdout] 63 |         write!(f, "{}", self.description())
[INFO] [stdout]    |                              ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> bittorrent-protocol/src/utp/error.rs:81:48
[INFO] [stdout]    |
[INFO] [stdout] 81 |         io::Error::new(ErrorKind::Other, error.description())
[INFO] [stdout]    |                                                ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 70 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking tokio-util v0.3.1
[INFO] [stderr]     Checking tokio-tls v0.3.1
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex4_utp_socket.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use log::{debug, info, LevelFilter};
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Logger`, `filter::threshold::ThresholdFilter`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex4_utp_socket.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 |     config::{Appender, Config, Logger, Root},
[INFO] [stdout]   |                                ^^^^^^
[INFO] [stdout] 8 |     encode::pattern::PatternEncoder,
[INFO] [stdout] 9 |     filter::threshold::ThresholdFilter,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex4_utp_socket.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::fs::File;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UtpStream`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex4_utp_socket.rs:12:32
[INFO] [stdout]    |
[INFO] [stdout] 12 | use bittorrent_protocol::utp::{UtpStream,UtpSocket};
[INFO] [stdout]    |                                ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Read`, `Write`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex4_utp_socket.rs:13:15
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::io::{Read, Write};
[INFO] [stdout]    |               ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BufRead`, `self`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex1_metainfo_create_torrent.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{self, BufRead, Write};
[INFO] [stdout]   |               ^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex4_utpcat.rs:2:11
[INFO] [stdout]   |
[INFO] [stdout] 2 | use log::{debug, info, LevelFilter};
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Logger`, `filter::threshold::ThresholdFilter`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex4_utpcat.rs:8:32
[INFO] [stdout]    |
[INFO] [stdout] 8  |     config::{Appender, Config, Logger, Root},
[INFO] [stdout]    |                                ^^^^^^
[INFO] [stdout] 9  |     encode::pattern::PatternEncoder,
[INFO] [stdout] 10 |     filter::threshold::ThresholdFilter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex4_utpcat.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::fs::File;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex5_handshake_torrent.rs:2:11
[INFO] [stdout]   |
[INFO] [stdout] 2 | use log::{debug, info, LevelFilter};
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Logger`, `filter::threshold::ThresholdFilter`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex5_handshake_torrent.rs:8:32
[INFO] [stdout]    |
[INFO] [stdout] 8  |     config::{Appender, Config, Logger, Root},
[INFO] [stdout]    |                                ^^^^^^
[INFO] [stdout] 9  |     encode::pattern::PatternEncoder,
[INFO] [stdout] 10 |     filter::threshold::ThresholdFilter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex5_handshake_torrent.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::fs::File;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BufRead`, `Write`, `self`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex5_handshake_torrent.rs:14:15
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::io::{self, BufRead, Write};
[INFO] [stdout]    |               ^^^^  ^^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TcpTransport`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex5_handshake_torrent.rs:19:50
[INFO] [stdout]    |
[INFO] [stdout] 19 | use bittorrent_protocol::handshake::transports::{TcpTransport,UtpTransport};
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> bittorrent-protocol/examples/ex5_handshake_torrent.rs:66:5
[INFO] [stdout]    |
[INFO] [stdout] 66 | /     /**
[INFO] [stdout] 67 | |      *   bittorrent-protocol/examples_data/file/music.zip  info-hash
[INFO] [stdout] 68 | |      */
[INFO] [stdout]    | |_______^
[INFO] [stdout] 69 |       let hex_hash = "E5B6BECAFD04BA0A9B7BBE6883A86DEDA731AE3C";
[INFO] [stdout]    |       ---------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout]    = help: use `/* */` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex6_peer_add_peer.rs:1:11
[INFO] [stdout]   |
[INFO] [stdout] 1 | use log::{debug, info, LevelFilter};
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Logger`, `filter::threshold::ThresholdFilter`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex6_peer_add_peer.rs:7:32
[INFO] [stdout]   |
[INFO] [stdout] 7 |     config::{Appender, Config, Logger, Root},
[INFO] [stdout]   |                                ^^^^^^
[INFO] [stdout] 8 |     encode::pattern::PatternEncoder,
[INFO] [stdout] 9 |     filter::threshold::ThresholdFilter,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex6_peer_add_peer.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::io;
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bittorrent_protocol::peer::messages::PeerWireProtocolMessage`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex6_peer_add_peer.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use bittorrent_protocol::peer::messages::PeerWireProtocolMessage;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BufRead`, `Write`, `self`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex2_disk_add_torrent.rs:2:15
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{self, BufRead, Read, Write};
[INFO] [stdout]   |               ^^^^  ^^^^^^^        ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Logger`, `filter::threshold::ThresholdFilter`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex2_disk_add_torrent.rs:10:32
[INFO] [stdout]    |
[INFO] [stdout] 10 |     config::{Appender, Config, Logger, Root},
[INFO] [stdout]    |                                ^^^^^^
[INFO] [stdout] 11 |     encode::pattern::PatternEncoder,
[INFO] [stdout] 12 |     filter::threshold::ThresholdFilter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex4_echo-server.rs:2:11
[INFO] [stdout]   |
[INFO] [stdout] 2 | use log::{debug, info, LevelFilter};
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex3_dht_get_peer.rs:3:11
[INFO] [stdout]   |
[INFO] [stdout] 3 | use log::{debug, info, LevelFilter};
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Logger`, `filter::threshold::ThresholdFilter`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex4_echo-server.rs:8:32
[INFO] [stdout]    |
[INFO] [stdout] 8  |     config::{Appender, Config, Logger, Root},
[INFO] [stdout]    |                                ^^^^^^
[INFO] [stdout] 9  |     encode::pattern::PatternEncoder,
[INFO] [stdout] 10 |     filter::threshold::ThresholdFilter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex4_echo-server.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::fs::File;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Logger`, `filter::threshold::ThresholdFilter`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex3_dht_get_peer.rs:9:32
[INFO] [stdout]    |
[INFO] [stdout] 9  |     config::{Appender, Config, Logger, Root},
[INFO] [stdout]    |                                ^^^^^^
[INFO] [stdout] 10 |     encode::pattern::PatternEncoder,
[INFO] [stdout] 11 |     filter::threshold::ThresholdFilter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ToSocketAddrs`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex3_dht_get_peer.rs:15:52
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4, ToSocketAddrs};
[INFO] [stdout]    |                                                    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex3_dht_get_peer.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use std::fs::File;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cell::RefCell`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex8_simple_file_download.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::cell::RefCell;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::rc::Rc`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex8_simple_file_download.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::rc::Rc;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Receiver`, `Sender`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex8_simple_file_download.rs:11:28
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::mpsc::{self,Sender, Receiver};
[INFO] [stdout]    |                            ^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `chrono::Local`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex8_simple_file_download.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use chrono::Local;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex8_simple_file_download.rs:15:11
[INFO] [stdout]    |
[INFO] [stdout] 15 | use log::{debug, info, LevelFilter};
[INFO] [stdout]    |           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Logger`, `filter::threshold::ThresholdFilter`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex8_simple_file_download.rs:21:32
[INFO] [stdout]    |
[INFO] [stdout] 21 |     config::{Appender, Config, Logger, Root},
[INFO] [stdout]    |                                ^^^^^^
[INFO] [stdout] 22 |     encode::pattern::PatternEncoder,
[INFO] [stdout] 23 |     filter::threshold::ThresholdFilter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UtpTransport`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex8_simple_file_download.rs:29:63
[INFO] [stdout]    |
[INFO] [stdout] 29 | use bittorrent_protocol::handshake::transports::{TcpTransport,UtpTransport};
[INFO] [stdout]    |                                                               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bittorrent_protocol::utp::UtpSocket`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex8_simple_file_download.rs:44:5
[INFO] [stdout]    |
[INFO] [stdout] 44 | use bittorrent_protocol::utp::UtpSocket;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]  --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::{debug, info, LevelFilter};
[INFO] [stdout]   |           ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DiskManagerStream`, `ODiskMessage`
[INFO] [stdout]   --> bittorrent-protocol/tests/test3_disk/mod.rs:11:47
[INFO] [stdout]    |
[INFO] [stdout] 11 |     BlockMetadata, BlockMut, DiskManagerSink, DiskManagerStream, FileSystem, IDiskMessage,
[INFO] [stdout]    |                                               ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     ODiskMessage,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Logger`, `filter::threshold::ThresholdFilter`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:12:32
[INFO] [stdout]    |
[INFO] [stdout] 12 |     config::{Appender, Config, Logger, Root},
[INFO] [stdout]    |                                ^^^^^^
[INFO] [stdout] 13 |     encode::pattern::PatternEncoder,
[INFO] [stdout] 14 |     filter::threshold::ThresholdFilter,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `MockHandshaker`
[INFO] [stdout]  --> bittorrent-protocol/tests/test4_utracker/test_server_drop.rs:4:13
[INFO] [stdout]   |
[INFO] [stdout] 4 | use super::{MockHandshaker, MockTrackerHandler};
[INFO] [stdout]   |             ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `pendulum::future::TimerBuilder`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use pendulum::future::TimerBuilder;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `pendulum::HashedWheelBuilder`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use pendulum::HashedWheelBuilder;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::test5_handshake::TimeoutResult`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::test5_handshake::TimeoutResult;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> bittorrent-protocol/tests/test5_handshake/test_filter_block_all.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::Debug`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use std::fmt::Debug;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::test5_handshake::TimeoutResult`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_block_all.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::test5_handshake::TimeoutResult;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_diff_data.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::test5_handshake::TimeoutResult`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_diff_data.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::test5_handshake::TimeoutResult;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_same_data.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::test5_handshake::TimeoutResult`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_same_data.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::test5_handshake::TimeoutResult;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SocketAddr`, `ToSocketAddrs`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:21:16
[INFO] [stdout]    |
[INFO] [stdout] 21 | use std::net::{SocketAddr, ToSocketAddrs};
[INFO] [stdout]    |                ^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Receiver`, `Sender`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:23:23
[INFO] [stdout]    |
[INFO] [stdout] 23 | use std::sync::mpsc::{Sender, Receiver};
[INFO] [stdout]    |                       ^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mpsc`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::sync::{mpsc, Arc, Mutex};
[INFO] [stdout]    |                 ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DhtBuilder`, `DhtEvent`, `Handshaker as DhtHandshake`, `Router`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:28:32
[INFO] [stdout]    |
[INFO] [stdout] 28 | use bittorrent_protocol::dht::{DhtBuilder, DhtEvent, Handshaker as DhtHandshake, Router};
[INFO] [stdout]    |                                ^^^^^^^^^^  ^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UtpTransport`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:46:63
[INFO] [stdout]    |
[INFO] [stdout] 46 | use bittorrent_protocol::handshake::transports::{TcpTransport,UtpTransport};
[INFO] [stdout]    |                                                               ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:97:9
[INFO] [stdout]     |
[INFO] [stdout] 97  | /         /**
[INFO] [stdout] 98  | |          *   bittorrent-protocol/examples_data/file/music.zip  info-hash
[INFO] [stdout] 99  | |          */
[INFO] [stdout]     | |___________^
[INFO] [stdout] 100 |           None => "E5B6BECAFD04BA0A9B7BBE6883A86DEDA731AE3C",
[INFO] [stdout]     |           -------------------------------------------------- rustdoc does not generate documentation for match arms
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout]     = help: use `/* */` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]   --> bittorrent-protocol/benches/stream.rs:17:42
[INFO] [stdout]    |
[INFO] [stdout] 17 |     use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]   --> bittorrent-protocol/benches/socket.rs:16:42
[INFO] [stdout]    |
[INFO] [stdout] 16 |     use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex5_handshake_torrent.rs:96:37
[INFO] [stdout]    |
[INFO] [stdout] 96 |     let (pro,ext,hash, peer_id,addr,s) = completemessage.into_parts();
[INFO] [stdout]    |                                     ^ help: if this is intentional, prefix it with an underscore: `_s`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]   --> bittorrent-protocol/benches/socket.rs:17:39
[INFO] [stdout]    |
[INFO] [stdout] 17 |     static NEXT_OFFSET: AtomicUsize = ATOMIC_USIZE_INIT;
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: replace the use of the deprecated constant
[INFO] [stdout]    |
[INFO] [stdout] 17 |     static NEXT_OFFSET: AtomicUsize = AtomicUsize::new(0);
[INFO] [stdout]    |                                       ~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]   --> bittorrent-protocol/benches/stream.rs:18:39
[INFO] [stdout]    |
[INFO] [stdout] 18 |     static NEXT_OFFSET: AtomicUsize = ATOMIC_USIZE_INIT;
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: replace the use of the deprecated constant
[INFO] [stdout]    |
[INFO] [stdout] 18 |     static NEXT_OFFSET: AtomicUsize = AtomicUsize::new(0);
[INFO] [stdout]    |                                       ~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]   --> bittorrent-protocol/examples/ex4_utp_socket.rs:53:9
[INFO] [stdout]    |
[INFO] [stdout] 53 |     for v in  0..3{
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 7 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> bittorrent-protocol/examples/ex2_disk_add_torrent.rs:85:5
[INFO] [stdout]    |
[INFO] [stdout] 85 |     disk_send.send(IDiskMessage::AddTorrent(metainfo_file));
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]   --> bittorrent-protocol/tests/test6_utp/mod.rs:11:42
[INFO] [stdout]    |
[INFO] [stdout] 11 |     use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_USIZE_INIT`: the `new` function is now preferred
[INFO] [stdout]   --> bittorrent-protocol/tests/test6_utp/mod.rs:12:39
[INFO] [stdout]    |
[INFO] [stdout] 12 |     static NEXT_OFFSET: AtomicUsize = ATOMIC_USIZE_INIT;
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: replace the use of the deprecated constant
[INFO] [stdout]    |
[INFO] [stdout] 12 |     static NEXT_OFFSET: AtomicUsize = AtomicUsize::new(0);
[INFO] [stdout]    |                                       ~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 6 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `error`
[INFO] [stdout]    --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:198:55
[INFO] [stdout]     |
[INFO] [stdout] 198 |                  OPeerManagerMessage::PeerError(info, error) => {
[INFO] [stdout]     |                                                       ^^^^^ help: if this is intentional, prefix it with an underscore: `_error`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:139:9
[INFO] [stdout]     |
[INFO] [stdout] 139 |     let mut uber_module = Arc::new(Mutex::new(UberModuleBuilder::new()
[INFO] [stdout]     |         ----^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:175:9
[INFO] [stdout]     |
[INFO] [stdout] 175 |     let mut uber_module_clone = uber_module.clone();
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/examples/ex7_select_metadata_download.rs:234:9
[INFO] [stdout]     |
[INFO] [stdout] 234 |     let mut uber_module_clone = uber_module.clone();
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> bittorrent-protocol/examples/ex8_simple_file_download.rs:491:41
[INFO] [stdout]     |
[INFO] [stdout] 491 |             SelectState::BitField(info, msg) => {
[INFO] [stdout]     |                                         ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 15 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/examples/ex8_simple_file_download.rs:388:26
[INFO] [stdout]     |
[INFO] [stdout] 388 |                      let mut peer_list = request_map_mut.get_mut(&metadata).unwrap();
[INFO] [stdout]     |                          ----^^^^^^^^^
[INFO] [stdout]     |                          |
[INFO] [stdout]     |                          help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/examples/ex8_simple_file_download.rs:233:9
[INFO] [stdout]     |
[INFO] [stdout] 233 |     let mut peer_select_send = select_send.clone();
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/examples/ex8_simple_file_download.rs:235:9
[INFO] [stdout]     |
[INFO] [stdout] 235 |     let mut arc_disk_request_map = disk_request_map.clone();
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> bittorrent-protocol/examples/ex8_simple_file_download.rs:411:26
[INFO] [stdout]     |
[INFO] [stdout] 411 |                          disk_select_send.send(select_message);
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> bittorrent-protocol/examples/ex8_simple_file_download.rs:429:5
[INFO] [stdout]     |
[INFO] [stdout] 429 |     disk_manager_send.send(IDiskMessage::AddTorrent(metainfo.clone()));
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 14 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/initiator.rs:78:13
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let recv_enum_item = super::initiator_handler(
[INFO] [stdout]    |                              ------------------------ arguments to this function are incorrect
[INFO] [stdout] 77 |             exp_message.clone(),
[INFO] [stdout] 78 |             &(MockTransport, Filters::new(), core.handle(), timer),
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&(MockTransport, Filters, HandshakeTimer)`
[INFO] [stdout]               found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/initiator.rs:9:8
[INFO] [stdout]    |
[INFO] [stdout] 9  | pub fn initiator_handler<T>(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10 |     item: InitiateMessage,
[INFO] [stdout] 11 |     context: &(T, Filters, HandshakeTimer),
[INFO] [stdout]    |     --------------------------------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `piece_zero_good`
[INFO] [stdout]    --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:148:14
[INFO] [stdout]     |
[INFO] [stdout] 148 |         let (piece_zero_good, piece_one_good, piece_two_good) = match opt_piece_index {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_zero_good`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `piece_one_good`
[INFO] [stdout]    --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:148:31
[INFO] [stdout]     |
[INFO] [stdout] 148 |         let (piece_zero_good, piece_one_good, piece_two_good) = match opt_piece_index {
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_one_good`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `piece_two_good`
[INFO] [stdout]    --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:148:47
[INFO] [stdout]     |
[INFO] [stdout] 148 |         let (piece_zero_good, piece_one_good, piece_two_good) = match opt_piece_index {
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_two_good`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `piece_zero_good` is never read
[INFO] [stdout]    --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:197:13
[INFO] [stdout]     |
[INFO] [stdout] 197 |     let mut piece_zero_good = false;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `m_recv`
[INFO] [stdout]   --> bittorrent-protocol/tests/test3_disk/disk_manager_send_backpressure.rs:26:26
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let (mut m_send, mut m_recv) = DiskManagerBuilder::new()
[INFO] [stdout]    |                          ^^^^^^ help: if this is intentional, prefix it with an underscore: `_m_recv`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `piece_zero_good` is never read
[INFO] [stdout]   --> bittorrent-protocol/tests/test3_disk/resume_torrent.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |     let mut piece_zero_good = false;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `Protocol`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:10
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |          ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Protocol`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `Extensions`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:20
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |                    ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Extensions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `InfoHash`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:32
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |                                ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_InfoHash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `SocketAddr`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:50
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |                                                  ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SocketAddr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `S`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:62
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |                                                              ^ help: if this is intentional, prefix it with an underscore: `_S`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_one`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:69:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let result_one = stream_one.poll().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_one`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_two`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let result_two = stream_two.poll().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_two`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_one`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_block_all.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let result_one = stream_one.poll().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_one`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_two`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_block_all.rs:73:9
[INFO] [stdout]    |
[INFO] [stdout] 73 |     let result_two = stream_two.poll().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_two`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_one`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_diff_data.rs:87:9
[INFO] [stdout]    |
[INFO] [stdout] 87 |     let result_one = stream_one.poll().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_one`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_two`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_diff_data.rs:89:9
[INFO] [stdout]    |
[INFO] [stdout] 89 |     let result_two = stream_two.poll().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_two`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_one`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_same_data.rs:85:9
[INFO] [stdout]    |
[INFO] [stdout] 85 |     let result_one = stream_one.poll().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_one`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `result_two`
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_same_data.rs:87:9
[INFO] [stdout]    |
[INFO] [stdout] 87 |     let result_two = stream_two.poll().unwrap();
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_two`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result` in the current scope
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/initiator.rs:80:10
[INFO] [stdout]    |
[INFO] [stdout] 80 |         .wait()
[INFO] [stdout]    |          ^^^^ method not found in `Result<Option<HandshakeType<std::io::Cursor<Vec<u8>>>>, ()>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:132:9
[INFO] [stdout]     |
[INFO] [stdout] 132 |     let mut piece_zero_good = false;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:133:9
[INFO] [stdout]     |
[INFO] [stdout] 133 |     let mut piece_one_good = false;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:134:9
[INFO] [stdout]     |
[INFO] [stdout] 134 |     let mut piece_two_good = false;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let mut messages_recvd = 0;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:198:9
[INFO] [stdout]     |
[INFO] [stdout] 198 |     let mut messages_recvd = 0;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> bittorrent-protocol/tests/test3_disk/disk_manager_send_backpressure.rs:26:22
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let (mut m_send, mut m_recv) = DiskManagerBuilder::new()
[INFO] [stdout]    |                      ----^^^^^^
[INFO] [stdout]    |                      |
[INFO] [stdout]    |                      help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> bittorrent-protocol/tests/test3_disk/resume_torrent.rs:82:9
[INFO] [stdout]    |
[INFO] [stdout] 82 |     let mut messages_recvd = 0;
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |     let mut handshaker_one = HandshakerManagerBuilder::new()
[INFO] [stdout]    |         ----^^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `TimedOut` and `GotResult` are never constructed
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/mod.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub enum TimeoutResult {
[INFO] [stdout]    |          ------------- variants in this enum
[INFO] [stdout] 13 |     TimedOut,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 14 |     GotResult,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]    = note: `TimeoutResult` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_byte_after_handshake.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 | /         handshaker_one
[INFO] [stdout] 42 | |         .poll()
[INFO] [stdout] 43 | |         .map_err(|_| ())
[INFO] [stdout] 44 | |         .and_then(|message| {
[INFO] [stdout] ...  |
[INFO] [stdout] 50 | |             }
[INFO] [stdout] 51 | |         });
[INFO] [stdout]    | |___________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_bytes_after_handshake.rs:42:9
[INFO] [stdout]    |
[INFO] [stdout] 42 | /         handshaker_one
[INFO] [stdout] 43 | |         .poll()
[INFO] [stdout] 44 | |         .map_err(|_| ())
[INFO] [stdout] 45 | |         .and_then(|message| {
[INFO] [stdout] ...  |
[INFO] [stdout] 52 | |
[INFO] [stdout] 53 | |         });
[INFO] [stdout]    | |___________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:28:5
[INFO] [stdout]    |
[INFO] [stdout] 28 |     handshaker_one.send(InitiateMessage::new(Protocol::BitTorrent, [55u8; bt::INFO_HASH_LEN].into(), handshaker_two_addr ));
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `Protocol` should have a snake case name
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:10
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |          ^^^^^^^^ help: convert the identifier to snake case: `protocol`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `Extensions` should have a snake case name
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:20
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |                    ^^^^^^^^^^ help: convert the identifier to snake case: `extensions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `InfoHash` should have a snake case name
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:32
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |                                ^^^^^^^^ help: convert the identifier to snake case: `info_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `PeerId` should have a snake case name
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:42
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |                                          ^^^^^^ help: convert the identifier to snake case: `peer_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `SocketAddr` should have a snake case name
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:50
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |                                                  ^^^^^^^^^^ help: convert the identifier to snake case: `socket_addr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `S` should have a snake case name
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:62
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts();
[INFO] [stdout]    |                                                              ^ help: convert the identifier to snake case (notice the capitalization): `s`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:67:5
[INFO] [stdout]    |
[INFO] [stdout] 67 |     sink_two.send(InitiateMessage::new(Protocol::BitTorrent, [55u8; bt::INFO_HASH_LEN].into(), handshaker_one_addr));
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_block_all.rs:69:5
[INFO] [stdout]    |
[INFO] [stdout] 69 |     sink_two.send(InitiateMessage::new(Protocol::BitTorrent, [55u8; bt::INFO_HASH_LEN].into(), handshaker_one_addr));
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_diff_data.rs:85:5
[INFO] [stdout]    |
[INFO] [stdout] 85 |     sink_two.send(InitiateMessage::new(Protocol::BitTorrent, [55u8; bt::INFO_HASH_LEN].into(), handshaker_one_addr));
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_same_data.rs:83:5
[INFO] [stdout]    |
[INFO] [stdout] 83 |     sink_two.send(InitiateMessage::new(Protocol::BitTorrent, [55u8; bt::INFO_HASH_LEN].into(), handshaker_one_addr));
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking h2 v0.2.7
[INFO] [stdout] warning: 53 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/initiator.rs:108:13
[INFO] [stdout]     |
[INFO] [stdout] 106 |         let recv_enum_item = super::initiator_handler(
[INFO] [stdout]     |                              ------------------------ arguments to this function are incorrect
[INFO] [stdout] 107 |             exp_message.clone(),
[INFO] [stdout] 108 |             &(MockTransport, filters, core.handle(), timer),
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected reference `&(MockTransport, Filters, HandshakeTimer)`
[INFO] [stdout]                found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/initiator.rs:9:8
[INFO] [stdout]     |
[INFO] [stdout] 9   | pub fn initiator_handler<T>(
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10  |     item: InitiateMessage,
[INFO] [stdout] 11  |     context: &(T, Filters, HandshakeTimer),
[INFO] [stdout]     |     --------------------------------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result` in the current scope
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/initiator.rs:110:10
[INFO] [stdout]     |
[INFO] [stdout] 110 |         .wait()
[INFO] [stdout]     |          ^^^^ method not found in `Result<Option<HandshakeType<std::io::Cursor<Vec<u8>>>>, ()>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/initiator.rs:138:13
[INFO] [stdout]     |
[INFO] [stdout] 136 |         let recv_enum_item = super::initiator_handler(
[INFO] [stdout]     |                              ------------------------ arguments to this function are incorrect
[INFO] [stdout] 137 |             exp_message.clone(),
[INFO] [stdout] 138 |             &(MockTransport, filters, core.handle(), timer),
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected reference `&(MockTransport, Filters, HandshakeTimer)`
[INFO] [stdout]                found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/initiator.rs:9:8
[INFO] [stdout]     |
[INFO] [stdout] 9   | pub fn initiator_handler<T>(
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10  |     item: InitiateMessage,
[INFO] [stdout] 11  |     context: &(T, Filters, HandshakeTimer),
[INFO] [stdout]     |     --------------------------------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result` in the current scope
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/initiator.rs:140:10
[INFO] [stdout]     |
[INFO] [stdout] 140 |         .wait()
[INFO] [stdout]     |          ^^^^ method not found in `Result<Option<HandshakeType<std::io::Cursor<Vec<u8>>>>, ()>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/initiator.rs:168:13
[INFO] [stdout]     |
[INFO] [stdout] 166 |         let recv_enum_item = super::initiator_handler(
[INFO] [stdout]     |                              ------------------------ arguments to this function are incorrect
[INFO] [stdout] 167 |             exp_message.clone(),
[INFO] [stdout] 168 |             &(MockTransport, filters, core.handle(), timer),
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected reference `&(MockTransport, Filters, HandshakeTimer)`
[INFO] [stdout]                found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/initiator.rs:9:8
[INFO] [stdout]     |
[INFO] [stdout] 9   | pub fn initiator_handler<T>(
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 10  |     item: InitiateMessage,
[INFO] [stdout] 11  |     context: &(T, Filters, HandshakeTimer),
[INFO] [stdout]     |     --------------------------------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result` in the current scope
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/initiator.rs:170:10
[INFO] [stdout]     |
[INFO] [stdout] 170 |         .wait()
[INFO] [stdout]     |          ^^^^ method not found in `Result<Option<HandshakeType<std::io::Cursor<Vec<u8>>>>, ()>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler` in the current scope
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/listener.rs:49:38
[INFO] [stdout]    |
[INFO] [stdout] 8  | pub struct ListenerHandler<S> {
[INFO] [stdout]    | ----------------------------- method `wait` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 49 |         let recv_enum_item = handler.wait().unwrap();
[INFO] [stdout]    |                                      ^^^^ method not found in `ListenerHandler<&str>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `wait`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `futures::Future`
[INFO] [stdout]            candidate #2: `futures::Stream`
[INFO] [stdout]            candidate #3: `futures::Sink`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler` in the current scope
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/listener.rs:69:38
[INFO] [stdout]    |
[INFO] [stdout] 8  | pub struct ListenerHandler<S> {
[INFO] [stdout]    | ----------------------------- method `wait` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 69 |         let recv_enum_item = handler.wait().unwrap();
[INFO] [stdout]    |                                      ^^^^ method not found in `ListenerHandler<&str>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `wait`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `futures::Future`
[INFO] [stdout]            candidate #2: `futures::Stream`
[INFO] [stdout]            candidate #3: `futures::Sink`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler` in the current scope
[INFO] [stdout]   --> bittorrent-protocol/src/handshake/handler/listener.rs:89:38
[INFO] [stdout]    |
[INFO] [stdout] 8  | pub struct ListenerHandler<S> {
[INFO] [stdout]    | ----------------------------- method `wait` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 89 |         let recv_enum_item = handler.wait().unwrap();
[INFO] [stdout]    |                                      ^^^^ method not found in `ListenerHandler<&str>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `wait`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `futures::Future`
[INFO] [stdout]            candidate #2: `futures::Stream`
[INFO] [stdout]            candidate #3: `futures::Sink`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler` in the current scope
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/handler/listener.rs:109:38
[INFO] [stdout]     |
[INFO] [stdout] 8   | pub struct ListenerHandler<S> {
[INFO] [stdout]     | ----------------------------- method `wait` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 109 |         let recv_enum_item = handler.wait().unwrap();
[INFO] [stdout]     |                                      ^^^^ method not found in `ListenerHandler<&str>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following traits define an item `wait`, perhaps you need to implement one of them:
[INFO] [stdout]             candidate #1: `futures::Future`
[INFO] [stdout]             candidate #2: `futures::Stream`
[INFO] [stdout]             candidate #3: `futures::Sink`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_inner` found for unit type `()` in the current scope
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:175:39
[INFO] [stdout]     |
[INFO] [stdout] 175 |         let recv_buffer = write_frame.into_inner().into_inner();
[INFO] [stdout]     |                                       ^^^^^^^^^^ method not found in `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `send` found for unit type `()` in the current scope
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:201:14
[INFO] [stdout]     |
[INFO] [stdout] 201 |             .send(message_two.clone())
[INFO] [stdout]     |              ^^^^ method not found in `()`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout] note: `Run` defines an item `send`, perhaps you need to implement it
[INFO] [stdout]    --> bittorrent-protocol/src/select/discovery/mod.rs:42:1
[INFO] [stdout]     |
[INFO] [stdout] 42  | pub trait Run {
[INFO] [stdout]     | ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `wait` found for struct `FramedHandshake` in the current scope
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:225:63
[INFO] [stdout]     |
[INFO] [stdout] 20  | pub struct FramedHandshake<S> {
[INFO] [stdout]     | ----------------------------- method `wait` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 225 |         let mut read_iter = FramedHandshake::new(&buffer[..]).wait();
[INFO] [stdout]     |                                                               ^^^^ method not found in `FramedHandshake<&[u8]>`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following traits define an item `wait`, perhaps you need to implement one of them:
[INFO] [stdout]             candidate #1: `futures::Future`
[INFO] [stdout]             candidate #2: `futures::Stream`
[INFO] [stdout]             candidate #3: `futures::Sink`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `ok` found for struct `FramedHandshake` in the current scope
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:249:14
[INFO] [stdout]     |
[INFO] [stdout] 20  | pub struct FramedHandshake<S> {
[INFO] [stdout]     | ----------------------------- method `ok` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 249 |             .ok()
[INFO] [stdout]     |              ^^ method not found in `FramedHandshake<&[u8]>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `ok` found for struct `FramedHandshake` in the current scope
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:274:14
[INFO] [stdout]     |
[INFO] [stdout] 20  | pub struct FramedHandshake<S> {
[INFO] [stdout]     | ----------------------------- method `ok` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 274 |             .ok()
[INFO] [stdout]     |              ^^ method not found in `FramedHandshake<&[u8]>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `(): std::error::Error` is not satisfied
[INFO] [stdout]    --> bittorrent-protocol/src/handshake/transport.rs:199:52
[INFO] [stdout]     |
[INFO] [stdout] 199 |                Err(Error::new(ErrorKind::NotFound, ()))
[INFO] [stdout]     |                    ----------                      ^^ the trait `std::error::Error` is not implemented for `()`
[INFO] [stdout]     |                    |
[INFO] [stdout]     |                    required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout]     = note: required for `Box<(dyn std::error::Error + Send + Sync + 'static)>` to implement `From<()>`
[INFO] [stdout]     = note: required for `()` to implement `Into<Box<(dyn std::error::Error + Send + Sync + 'static)>>`
[INFO] [stdout] note: required by a bound in `std::io::Error::new`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 40 previous errors; 35 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0252, E0271, E0277, E0282, E0283, E0308, E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0252`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bittorrent-protocol` due to 41 previous errors; 35 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "05bafed626ada179102740b9bfdf06e0cbc87184dcc46233f4abf6b2a765705f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "05bafed626ada179102740b9bfdf06e0cbc87184dcc46233f4abf6b2a765705f", kill_on_drop: false }`
[INFO] [stdout] 05bafed626ada179102740b9bfdf06e0cbc87184dcc46233f4abf6b2a765705f
